package com.sl.boot.admindemo.domain.echarts.controller;

import com.sl.boot.admindemo.domain.drug.service.DrugService;
import com.sl.boot.admindemo.commmon.vo.resp.StaRep;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;

public class EchartsController {
    @Resource
    DrugService drugService;
    
    //展示柱状图 - 所有药品数量的统计
    @GetMapping(value = "/getAllDrugCount")
    public StaRep monthS() {
        return drugService.getAllDrugCount();
    }
    
}
